package base

import (
	"github.com/tietang/props/v3/kvs"
)

var props kvs.ConfigSource

//全局配置管理实例
func Props() kvs.ConfigSource {
	Check(props)
	return props
}

type PropsStarter struct {
	BaseStarter
}

func (s *PropsStarter) Init(ctx StarterContext) {
	props = ctx.Props()
}
